package com.database.addindata;
import parse.TextLinker;

import java.io.File;

public class AddData {
    public static void main(String[] args) {
        TextLinker m = new TextLinker("book",6,true);//book is ignored
        String s =
                m.getText(new File("G:\\Java\\ebook_maven\\src\\main\\resources\\data\\book.csv"),
                        new int[] {3,3,3,0,3,0},false,"--");
        /*
        *     case 0->{
                    m = Mode.INTEGER;
                }
                case 1->{
                    m = Mode.FLOAT_DOUBLE;
                }
                case 2->{
                    m = Mode.STRING_STRING;
                }
                case 3->{
                    m = Mode.CHAR_STRING;
                }
                case 4->{
                    m = Mode.DATE;
                }
                default -> throw new IllegalStateException("Unexpected value: " + modeIns[i]);
            }
        * */
        System.out.println(s);
    }
}
